class Leave < ActiveRecord::Base
belongs_to :employee
belongs_to :leave_status
belongs_to :leave_portion
belongs_to :leave_type
has_many :leave_details
validates_presence_of :leave_type_id
end
